﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OgilvyOne.Model
{
    public class MemberInfoModel
    {
        private int memberid;
        private string username;
        private string member_nickname;
        private string password;
        private string member_name;
        private string user_type;
        private string tel;
        private string moblie;
        private string postcode;
        private string address;
        private DateTime reg_time;
        private string ip;
        private DateTime last_login_time;//最后登录时间
        private int state = 0;

        public int State
        {
            set { state = value; }
            get { return state; }
        }

        public int Memberid
        {
            set { memberid = value; }
            get { return memberid; }
        }
        public string Username
        {
            set { username = value; }
            get { return username; }
        }
        public string MemberNickname
        {
            set { member_nickname = value; }
            get { return member_nickname; }
        }
        public string Password
        {
            set { password = value; }
            get { return password; }
        }
        public string Membername
        {
            set { member_name = value; }
            get { return member_name; }
        }
        public string UserType
        {
            set { user_type = value; }
            get { return user_type; }
        }
        public string Tel
        {
            set { tel = value; }
            get { return tel; }
        }
        public string Moblie
        {
            set { moblie = value; }
            get { return moblie; }
        }
        public string Postcode
        {
            set { postcode = value; }
            get { return postcode; }
        }
        public string Address
        {
            set
            {
                address = value;
            }
            get { return address; }
        }
        public string RegTimeShort
        {
            get { return reg_time.ToShortDateString(); }
        }
        public DateTime RegTime
        {
            set { reg_time = value; }
            get { return reg_time; }
        }
        public string Ip
        {
            set { ip = value; }
            get { return ip; }
        }
        public DateTime LastLoginTime
        {
            set { last_login_time = value; }
            get { return last_login_time; }
        }
    }
}
